home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
163_01
/
putw.c
< prev
next >
Wrap
Text File
|
1988-01-30
|
512b
|
13 lines
/*
** put a word to the stream
*/
#define FILE int
#include "streamio.h"
extern fputc();
putw(w, stream) int w; FILE *stream; {
if(fputc((w >> 8) & 255, stream) == EOF) return EOF;
if(fputc(w & 255, stream) == EOF) return EOF;
return w;
}